package com.zjj.edu.web.controller.kfzx;

import com.zjj.edu.common.core.controller.BaseController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/kfzx/baoban")
public class BaobanController extends BaseController {

    private String prefix = "kfzx/baoban";

    @RequiresPermissions("kfzx:baoban:view")
    @GetMapping()
    public String classes(ModelMap mmap)
    {
        return prefix + "/baoban";
    }

    @GetMapping("/searchClass")
    public String searchClass(String classIds, ModelMap mmap)
    {
        mmap.put("classIds", classIds);
        return prefix + "/searchClass";
    }


}